import React, { Component } from 'react';
import { WeaDialog, WeaTools, WeaTab } from 'ecCom';
import { WeaTableNew } from 'comsMobx';

const WeaTable = WeaTableNew.WeaTable;
import { WeaLocaleProvider } from 'ecCom';

const getLabel = WeaLocaleProvider.getLabel;
import { Button } from 'antd';
import HighSeasLogList from '../highseas/HighSeasLogList';

class HighSeasLogDialog extends Component {
  constructor(props) {
    super(props);
  }


  render() {
    const { contentStore, logType } = this.props;
    const { logDialogVisible, changeLogDialog, logDialogSeasId = '' } = contentStore;
    return (
      <div>
        <WeaDialog
          ecId={`${this && this.props && this.props.ecId || ''}_WeaDialog@jmcsic`}
          style={{ width: 800, height: 600 }}
          visible={logDialogVisible}
          title={getLabel(382470, '日志监控')}
          icon="icon-coms-crm"
          iconBgcolor="#96358a"
          buttons={[]}
          onCancel={() => changeLogDialog(false)}
          hasScroll
        >
          {(logDialogVisible && <HighSeasLogList ecId={`${this && this.props && this.props.ecId || ''}_HighSeasLogList@r3h0g0`} logType={logType} logDialogSeasId={logDialogSeasId} />)}
        </WeaDialog>
      </div>
    );
  }
}

export default HighSeasLogDialog;
